namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0091 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.SysTaskHistory", "ApprovedBy", c => c.Int());
            AddColumn("dbo.SysTaskHistory", "ApprovedWhen", c => c.DateTime());
            AddColumn("dbo.SysTaskHistory", "RejectedBy", c => c.Int());
            AddColumn("dbo.SysTaskHistory", "RejectedWhen", c => c.DateTime());
            AddColumn("dbo.SysTaskHistory", "CanceledBy", c => c.Int());
            AddColumn("dbo.SysTaskHistory", "CanceledWhen", c => c.DateTime());
            AddColumn("dbo.SysTaskHistory", "SendBackBy", c => c.Int());
            AddColumn("dbo.SysTaskHistory", "SendBackWhen", c => c.DateTime());
            AddColumn("dbo.SysTaskHistory", "ForwardBy", c => c.Int());
            AddColumn("dbo.SysTaskHistory", "ForwardWhen", c => c.DateTime());
        }
        
        public override void Down()
        {
            DropColumn("dbo.SysTaskHistory", "ForwardWhen");
            DropColumn("dbo.SysTaskHistory", "ForwardBy");
            DropColumn("dbo.SysTaskHistory", "SendBackWhen");
            DropColumn("dbo.SysTaskHistory", "SendBackBy");
            DropColumn("dbo.SysTaskHistory", "CanceledWhen");
            DropColumn("dbo.SysTaskHistory", "CanceledBy");
            DropColumn("dbo.SysTaskHistory", "RejectedWhen");
            DropColumn("dbo.SysTaskHistory", "RejectedBy");
            DropColumn("dbo.SysTaskHistory", "ApprovedWhen");
            DropColumn("dbo.SysTaskHistory", "ApprovedBy");
        }
    }
}
